#include "CloneTimer.h"

ALLEGRO_TIMER* al_clone_timer(const ALLEGRO_TIMER* inTimer){
	if(inTimer != NULL){
		ALLEGRO_TIMER* temp;
		temp = al_create_timer(al_get_timer_speed(inTimer));
		al_set_timer_count(temp, al_get_timer_count(inTimer));
		if(al_get_timer_started(inTimer))
			al_start_timer(temp);
		return temp;
	}
	else
		return NULL;
}